<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>ESP8266网页配网</title>
	<script type="text/javascript">
		function wifi(){
			var ssid = aa.value;
			var password = bb.value;
			var xmlhttp=new XMLHttpRequest();
			xmlhttp.open("GET","/HandleWifi?ssid="+ssid+"&password="+password,true);
			xmlhttp.send();
			xmlhttp.onload = function(e){
			alert(this.responseText);}
			}
			</script>
</head>
<body>hello,我是fxy,输入wifi信息给wifi时钟配网:	
	<form>
		WiFi名称：<input type="text" placeholder="请输入您WiFi的名称" id="aa">
		<br>
		WiFi密码：<input type="text" placeholder="请输入您WiFi的密码" id="bb">
		<br>
		<input type="button" value="连接" onclick="wifi()">
	</form>
</body>
</html>
